package com.xlro.dao;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class UserDaoTest {

    @Before
    public void setUp() throws Exception {
        System.out.println("测试开始");
    }

    @After
    public void tearDown() throws Exception {
        System.out.println("测试结束");
    }

    @Test
    public void getAll() {
        System.out.println(new UserDao().getAll().get(1).getUsername());
    }

    @Test
    public void testGetAll() {
    }

    @Test
    public void testGetAll1() {
    }

    @Test
    public void alterPass() {
    }

    @Test
    public void alterInfo() {
        System.out.println(new UserDao().alterInfo("16", "1", "1", "1", "1", "1", "1"));
    }

    @Test
    public void testAlterInfo() {
        System.out.println(new UserDao().alterInfo("17", "11", "1", "1", "1", "1", "女"));
    }
}